This demo is just the barest beginnings of a customizable physics simulation. My focus was on getting the physics right, rather than on making it look pretty. It demonstrates how to find collisions between a point (the ball) and a line (the bumpers), how to rebound correctly, and so on.
For more RB stuff:
See my REALbasic code page [1]. Or write to me (Joe Strout) at <joe@strout.net>.